package com.nation.serviceImpl;

import com.nation.dao.ResearchWorkDao;
import com.nation.domain.TImportantResearchWork;
import com.nation.service.ResearchWorkService;
import com.nation.utils.ReadAndStoreFile;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by YeziAny on 2017/11/25.
 */
@Service
public class ResearchWorkServiceImpl implements ResearchWorkService {
    @Autowired
    ResearchWorkDao researchWorkDao;

    // 上传重要文献
    public void uploadResearchWorks(TImportantResearchWork tImportantResearchWork){
        String recoderTime= ReadAndStoreFile.getRecoderTime();
        tImportantResearchWork.setRecoderTime(recoderTime);
        researchWorkDao.uploadResearchWorks(tImportantResearchWork);
    }

}
